package com.eagift.nettyDemo.listener;

import com.eagift.nettyDemo.event.NettyMQTTServerCreateEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class NettyMQTTServerCreateListener implements ApplicationListener<NettyMQTTServerCreateEvent> {


    @Override
    public void onApplicationEvent(NettyMQTTServerCreateEvent nettyMQTTServerCreateEvent) {
        System.out.println("网络服务端口已启用!");
        // 启用spring 容器
    }
}
